package com.zkm.user.controller;

import com.zkm.user.vo.UserVO;
import com.zkm.user.vo.WeChatPayVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/info")
    public UserVO info(@RequestBody WeChatPayVO weChatPayVO) {
        log.info("支付订单号：{}", weChatPayVO.getPayNo());
        return new UserVO("李小龙", weChatPayVO.getPayNo());
    }
}
